package com.gl.saasservice.house.repository;

import com.gl.saasservice.house.entity.Cohabit;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.repository.PagingAndSortingRepository;

import java.util.List;

public interface CohabitRepository extends PagingAndSortingRepository<Cohabit,String>, JpaSpecificationExecutor<Cohabit> {
    List<Cohabit> findByApplyId(Long applyId);

    List<Cohabit> findByApplyIdIn(List<Long> applyIds);

}
